//
import {createRouter,createWebHashHistory} from 'vue-router'

const router = createRouter({
  history:createWebHashHistory(),
  routes:[
    {
      //默认显示注册页面
      path:'/',
      redirect:'/register'
    },
    {
      //注册页面
      path:'/register',
      component:()=>import('../views/user/UserRegister.vue')
    },
    {
      //注册登录
      path:'/login',
      component:()=>import('../views/user/UserLogin.vue')
    },
    {
      //用户登录列表
      path:'/showlist',
      component:()=>import('../views/user/ShowUserList.vue')
    },
    {
      //投资用户登录
      path:'/login02',
      component:()=>import('../views/Finance/User02Login.vue')
    },
    {
      //用户查看投资列表
      path:'/financelist',
      component:()=>import('../views/Finance/FinanceList.vue')
    },
    {
      //管理员查看投资列表
      path:'/adminfinancelist',
      component:()=>import('../views/Finance/AdminFinanceList.vue')
    },
    {
      //借款 用户 登录
      path:'/login03',
      component:()=>import('../views/Borrow/UserLogin03.vue')
    },
    {
      //用户查看借款列表
      path:'/userborrowList',
      component:()=>import('../views/Borrow/BorrowList.vue')
    },
    {
      //管理员查看借款列表
      path:'/adminborrowList',
      component:()=>import('../views/Borrow/AdminBorrowList.vue')
    },
    {
      //用户还款
      path:'/userBackBorrow',
      component:()=>import('../views/Borrow/UserBackBorrow.vue')
    }
  ]
})


//导出路由
export default router